package com.example.administrator.commonlibrary.utils;



import android.content.Context;
import android.util.Log;

import java.util.LinkedList;
import java.util.List;

/**
 * 作者：wang_hong_wei
 * 创建时间：2018/11/21
 * 描述：添加右滑不关闭Activity
 */
public class NoSlideColseActivityAddUtils {
    private static List<String> activityName=new LinkedList<>();
    static {
        activityName.add("MainActivity");
        activityName.add("SplashActivity");
        activityName.add("GuidanceActivity");
    }
    public static boolean getActivityColse(Context context){
        String name = ContexUtil.getActivityName(context);
        return  !activityName.contains(name);
    }
}
